<template>

  <span>我是user/___id.vue动态传参数</span>
</template>

<script>
import Vue from 'vue'

export default Vue.extend({
  name: 'userIdPage'
  ,
  validate({ params }) {
    console.log('params', params)
    // 必须是number类型
    return /^\d+$/.test(params.id)
  },
  mounted() {
    console.log('this.$route',this.$route)
  },
})
</script>
